package site.shenjie.zuul.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import site.shenjie.zuul.demo.filter.IpFilter;
import site.shenjie.zuul.demo.filter.TwoLevelFilter;

/**
 * 沈杰
 * 2020-7-28 11:40:10
 * 配置类：拦截器配置
 */
@Configuration
public class FilterConfig {
    @Bean
    public IpFilter ipFilter() {
        return new IpFilter();
    }

    @Bean
    public TwoLevelFilter twoLevelFilter() {
        return new TwoLevelFilter();
    }
}
